{* load lang file *}
{config_load file="lang`$smarty.const.PLANG`.txt" section="main"}

<h2>
    <a href="http://feeds.feedburner.com/elance-at" id="rsslink"><img src="{$TEMPLATE_ROOT}images/rss.png" alt="RSS" border="0" width="30" height="10" /></a>
    Latest in the Blog
</h2>

{foreach from=$data item=entry}
	<!-- start entry: {$entry.id} -->
	<div class="entry"> 
      <h3 class="entryTitle">{$entry.subject}</h3>
      {if $entry.image}<img src="{$SERVER_ROOT}thumb/{$entry.id}/" align="left" hspace="10" vspace="4" alt="Icon" />{/if}
	  {$entry.content|cut:"`$entry.url`":#readon#}

        <p class="posted">
            <span class="date">{$entry.intime|date_format:'%b. %d, %Y'}</span> {if $entry.comments} &mdash; <span class="clink"><a href="{$entry.url}">{#comments#} ({$entry.commentcount})</a></span>{else} &mdash; <a href="{$entry.url}">{#noComments#}</a>{/if} 
            {if $entry.keywords}
                <br />
                Posted In:
                {foreach from=$entry.keywords item=keyword name=myKeys}
                    {if not $smarty.foreach.myKeys.last}
                        <a href="{$SERVER_ROOT}keyword/{$keyword.link}/">{$keyword.word}</a>,
                    {else}
                        <a href="{$SERVER_ROOT}keyword/{$keyword.link}/">{$keyword.word}</a>
                    {/if}
                {/foreach}
            {/if}
        </p>
	  
	  <hr class="hide" />
	</div>
	<!-- end entry: {$entry.id} -->

{foreachelse}
	<div class="entry">
		<h3 class="entryTitle">{#noJoy#}</h3>
		<p>{#explained#}</p>
	</div>
{/foreach}

{* figure out pager behaviour *}
{if $smarty.const.ENABLE_PAGERS and $pagerTotal > $smarty.const.PER_PAGE}
	{include file="pagers.htm"}
{/if}